<?php
session_start();
require '../nette/Nette/loader.php';
require '../db.php';
require '../localization/lang.php';
require '../core/core.sanitizer.php';
require '../core/core.security.php';
require '../core/core.time.php';
require '../core/core.attendance.php';

$login=new core_security;
if ($login->checklogin()=="OK") {


$attend=new core_attendance;
if ($_POST['day'] < 10) {$_POST['day']= "0".$_POST['day'];}
if ($_POST['month'] < 10) {$_POST['month']= "0".$_POST['month'];}
$date=$_POST['month']."/".$_POST['day']."/".$_POST['year'];
echo $attend->computefromtasks_date($date);
//echo $date." ".$_SESSION['date2];



}
